import { chooseAddress} from "../../utils/asyncWx.js";
Page({
  async handlegetAddress(e){

    try {
          // 1 调用获取收货地址的 api
    let address = await chooseAddress();
    address.all = address.provinceName + address.cityName + address.countyName + address.detailInfo;

    // 2 存入到缓存中
    wx.setStorageSync("address", address);
    } catch (error) {
        console.log(error);
    }


  },
  data: {
  },
})